gtkplacesview: remove dead code
authorCarlos Soriano <csoriano@gnome.org>
Wed, 14 Oct 2015 19:47:03 +0000 (21:47 +0200)
committerCarlos Soriano <csoriano@gnome.org>
Thu, 15 Oct 2015 17:16:56 +0000 (19:16 +0200)
This is checked on is_removable_volume

https://bugzilla.gnome.org/show_bug.cgi?id=756589

gtk/gtkplacesview.c

index 8fc6ec7f8b4ebb3efe8b8e492e6d37e1a655d941..00b306803b53aeebc71f2de8e85ed8312a4aa9d8 100644 (file)
@@ -686,7 +686,6 @@ add_volume (GtkPlacesView *view,
             GVolume       *volume)
 {
   gboolean is_network;
-  GDrive *drive;
   GMount *mount;
   GFile *root;
   GIcon *icon;
@@ -697,20 +696,6 @@ add_volume (GtkPlacesView *view,
   if (is_removable_volume (volume))
     return;
 
-  drive = g_volume_get_drive (volume);
-
-  if (drive)
-    {
-      gboolean is_removable;
-
-      is_removable = g_drive_is_media_removable (drive) ||
-                     g_volume_can_eject (volume);
-      g_object_unref (drive);
-
-      if (is_removable)
-        return;
-    }
-
   identifier = g_volume_get_identifier (volume, G_VOLUME_IDENTIFIER_KIND_CLASS);
   is_network = g_strcmp0 (identifier, "network") == 0;